/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alag.ci.textanalysis.impl;
import java.util.*;

/**
 *
 * @author sczbbx
 */
public class SimpleStopWordMetaDataExtractor extends SimpleMetaDataExtractor {
    
    private static final String[] stopWords = {"and","of","the","to","is","their","can","all",""};
    private Map<String, String> stopWordMap = null;
    
    public SimpleStopWordMetaDataExtractor() {
        this.stopWordMap = new HashMap<String, String>();
        for (String s: stopWords) {
            this.stopWordMap.put(s, s);
        }
    }
    
    @Override
    protected boolean acceptToken(String token) {
        return !this.stopWordMap.containsKey(token);
    }
    
}
